<?php

namespace App\Datalog\Users;

use App\Datalog\Users\UserSet;
use App\Models\Log\LogLogin;

class LoginUserSet extends UserSet
{
    public function addSet(LogLogin $log)
    {
        $params = [
            'last_login_time' => $log->create_time,
            'last_login_ip' => $log->ip,
        ];
        $this->setVal($log->user_id, $log->create_time, $params);
    }
}
